#ifndef SPAWNER_H
#define SPAWNER_H
#include "./core/node.h"
class player;
class spawner:public node{
protected:
    int num_ = 20;
    float timer_ = 0.0f;
    float interval_ = 3.0f;
    player* target_ = nullptr;
public:
    virtual void update(float dt) override;
    int getNum(){ return num_; };
    void setNum(int num){ num_ = num; };
    float getInterval(){ return interval_; };
    void setInterval(float interval){ interval_ = interval; };
    float getTimer(){ return timer_; };
    void setTimer(float timer){ timer_ = timer; };
    player* getTarget(){ return target_; };
    void setTarget(player* target){ target_ = target; };
};

#endif